/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.limk.jconfig.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author limk
 * @date 2018年3月26日 下午12:52:13
 * @version
 */
public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -583427966915209391L;
	/**
	 * 唯一主键
	 */
	private Integer id;
	/**
	 * 用户账号（不允许重复）
	 */
	private String username;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 姓名
	 */
	private String realname;
	/**
	 * 联系方式
	 */
	private String telphone;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 头像
	 */
	private String avatar;
	/**
	 * 账号状态
	 */
	private Byte locked;
	/**
	 * 角色
	 */
	private List<Role> roles;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username == null ? null : username.trim();
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt == null ? null : salt.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname == null ? null : realname.trim();
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone == null ? null : telphone.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address == null ? null : address.trim();
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar == null ? null : avatar.trim();
	}

	public Byte getLocked() {
		return locked;
	}

	public void setLocked(Byte locked) {
		this.locked = locked;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

}